spl: nand: read only in the size of image_header on the first access
authorMasahiro Yamada <[email protected]>
Thu, 10 Jul 2014 11:43:16 +0000 (20:43 +0900)
committerTom Rini <[email protected]>
Tue, 22 Jul 2014 11:44:25 +0000 (07:44 -0400)
commitc13bb167578f716e38828cf9ca0bb38173da5a1d
treee6dd0bc0d5feb5f21abdb2f44569ba16b5a76e1e
parent949bbd7c867026e7f8ecb71abe6ebd113eda84d2
spl: nand: read only in the size of image_header on the first access

For the same reason as in commit 50c8d66d, all the remaining
CONFIG_SYS_NAND_PAGE_SIZE in common/spl/spl_nand.c can be replaced
with sizeof(*header).

Signed-off-by: Masahiro Yamada <[email protected]>
Cc: Tim Harvey <[email protected]>
Cc: Scott Wood <[email protected]>
Cc: Stefano Babic <[email protected]>
common/spl/spl_nand.c